//
//  WZPThemeVicoe.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/15.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "WZPThemeVicoe.h"
#import "WZPThemeItem.h"
#import <UIImageView+WebCache.h>


@interface WZPThemeVicoe()
@property (weak, nonatomic) IBOutlet UIImageView *picturnView;
@property (weak, nonatomic) IBOutlet UILabel *playerTimer;
@property (weak, nonatomic) IBOutlet UILabel *timer;


@end

@implementation WZPThemeVicoe

-(void)setItem:(WZPThemeItem *)item{

    
    [super setItem:item];
    
    [_picturnView sd_setImageWithURL:[NSURL URLWithString:item.image0]];
    _playerTimer.text = [NSString stringWithFormat:@"%@播放",item.playcount];
    NSInteger minute = item.vicoetime / 60;
    NSInteger seace = item.vicoetime % 60;
    _timer.text = [NSString stringWithFormat:@"%02ld:%02ld",minute,seace];


}
@end
